package s3_8;
/**
 * @author Administrator
 */
public class University {
    double math;
    double english;
    double chinese;
    double sport;
    double fx;

    void  enter(){
      fx=math+english+chinese;
        if(math+english+chinese>=180&&sport>=60){
            System.out.println("恭喜！3门课总分为："+fx+"且体育达标，达到大学录取线");
        }else{
            System.out.println("您落榜了!");
        }
    }
}
